:root{
    --bg-a:#f6fbff; --bg-b:#f9fff6;
    --accent:#5db8ff; --accent-2:#9ad8c9;
    --muted:#6b7280; --card:#ffffff; --radius:14px;
    --shadow:0 10px 30px rgba(16,24,40,0.06);
  }
  html,body{height:100%;margin:0;font-family:"PingFang SC","Noto Sans SC",Segoe UI,Helvetica,Arial; background:linear-gradient(135deg,var(--bg-a),var(--bg-b)); color:#172033; -webkit-font-smoothing:antialiased;}
  .page{position:absolute;inset:0;overflow:auto;padding:28px;box-sizing:border-box;}
  .hidden{display:none !important;}
  .btn{display:inline-block;padding:10px 14px;border-radius:10px;border:none;cursor:pointer;color:#fff;background:linear-gradient(90deg,var(--accent),var(--accent-2));font-weight:700}
  .btn.ghost{background:transparent;color:var(--accent);border:1px solid rgba(93,184,255,0.14);box-shadow:none}
  .muted{color:var(--muted);font-size:13px}
  .card{background:var(--card);border-radius:12px;padding:12px;box-shadow:var(--shadow)}
  .auth-center{max-width:460px;margin:8vh auto;background:var(--card);border-radius:16px;padding:26px;box-shadow:var(--shadow)}
  .auth-center h1{margin:0 0 8px;color:var(--accent)}
  .field{margin-bottom:12px}
  .field input{width:100%;padding:12px;border-radius:10px;border:1px solid #e6eef8;background:#fbfeff;font-size:15px}

  header.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
  .logo{display:flex;align-items:center;gap:10px}
  .mark{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
  .search{flex:1;margin:0 18px}
  .search input{width:100%;padding:10px;border-radius:999px;border:1px solid #e8eef8}
  .user-area{display:flex;align-items:center;gap:10px}
  .avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(180deg,#fff,#f3f7ff);display:flex;align-items:center;justify-content:center;font-weight:700;color:#1b2432;border:1px solid rgba(0,0,0,0.04)}

  .categories{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
  .chip{padding:8px 12px;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,0.75),rgba(255,255,255,0.9));border:1px solid rgba(10,20,40,0.03);cursor:pointer;font-weight:600;color:#263243}
  .chip.active{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;box-shadow:0 8px 24px rgba(93,184,255,0.08)}

  .album-grid{column-count:3;column-gap:14px;padding-top:12px}
  .album-card{display:inline-block;width:100%;margin:0 0 14px;border-radius:12px;overflow:hidden;box-shadow:var(--shadow);cursor:pointer;break-inside:avoid}
  .album-card img{width:100%;display:block;object-fit:cover}
  .album-card .meta{padding:10px}
  .album-card .title{font-weight:700;margin-bottom:6px}
  .album-card .info{color:var(--muted);font-size:13px}

  .fab{position:fixed;right:28px;bottom:28px;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;border:none;padding:14px 18px;border-radius:999px;font-weight:700;box-shadow:0 12px 30px rgba(93,184,255,0.12);cursor:pointer}

  .overlay{position:fixed;inset:0;background:rgba(6,12,20,0.5);display:flex;align-items:center;justify-content:center;z-index:120;padding:20px}
  .modal{width:100%;max-width:1100px;max-height:90vh;background:var(--card);border-radius:12px;display:flex;overflow:hidden;box-shadow:0 20px 50px rgba(10,20,40,0.3)}
  .modal .left{flex:1;background:#000;display:flex;align-items:center;justify-content:center;position:relative;min-width:0}
  .modal img{max-width:100%;max-height:86vh;object-fit:contain;display:block}
  .nav-btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,0.08);color:#fff;border:none;padding:8px 12px;font-size:22px;border-radius:8px;cursor:pointer}
  .nav-left{left:12px}
  .nav-right{right:12px}
  .modal .right{width:360px;padding:14px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px}
  .title{font-weight:800;font-size:18px}
  .stats{display:flex;gap:8px;align-items:center;justify-content:space-between}
  .stat-num{font-weight:700}
  .comments{flex:1;overflow:auto;border-top:1px dashed #f2f5f8;padding-top:8px}
  .comment{padding:8px 0;border-bottom:1px dashed #f2f5f8}
  .comment strong{font-size:14px}
  .comment .txt{color:var(--muted);font-size:13px;margin-top:6px}
  .comment-box{display:flex;gap:8px;margin-top:8px}
  .comment-box input{flex:1;padding:10px;border-radius:8px;border:1px solid #eef6ff}

  .admin-panel{max-width:980px;margin:20px auto;padding:18px;background:var(--card);border-radius:12px;box-shadow:var(--shadow)}
  .cat-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
  .cat-pill{background:#f1fbf6;padding:8px 12px;border-radius:999px;color:var(--muted);display:flex;gap:8px;align-items:center}

  .admin-mini-btn{padding:6px 10px;font-size:12px;background:#ffe7e7;color:#a33;border-radius:6px;border:1px solid #ffbebe;cursor:pointer}

  .profile-wrap{max-width:880px;margin:20px auto;display:grid;grid-template-columns:260px 1fr;gap:18px}
  .profile-card{padding:16px;border-radius:12px;background:var(--card);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;gap:12px}
  .profile-avatar{width:120px;height:120px;border-radius:20px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:flex;align-items:center;justify-content:center;font-size:40px;color:#fff;font-weight:800}
  .profile-info{padding:16px;border-radius:12px;background:var(--card);box-shadow:var(--shadow)}
  .profile-info label{display:block;color:var(--muted);font-size:13px;margin-top:8px}
  .profile-info input{width:100%;padding:10px;border-radius:8px;border:1px solid #eef6ff;margin-top:6px}

  @media(max-width:980px){ .album-grid{column-count:2} .profile-wrap{grid-template-columns:1fr} .modal .right{display:none} }
  @media(max-width:640px){ .album-grid{column-count:1} .auth-center{margin:6vh 16px} .profile-avatar{width:100px;height:100px} }
